QT += network

DEFINES += ASTYLE_LIBRARY

# AStyle files

SOURCES +=  astyleplugin.cpp \
            cartisticstyle.cpp \
            cdlgformatproject.cpp \
            cformatprojectthread.cpp \
            formformatoption.cpp \
            formindentoption.cpp \
            formpadoption.cpp \
            formstyleoption.cpp \
            formtaboption.cpp \
            valueaction.cpp \
            astyleactions.cpp

HEADERS +=  astyleplugin.h \
            astyle_global.h \
            astyleconstants.h \
            astyleplugin_p.h \
            astyleactions.h \
            cartisticstyle.h \
            cdlgformatproject.h \
            cformatprojectthread.h \
            formformatoption.h \
            formindentoption.h \
            formpadoption.h \
            formstyleoption.h \
            formtaboption.h \
            valueaction.h

# Qt Creator linking

## Either set the IDE_SOURCE_TREE when running qmake,
## or set the QTC_SOURCE environment variable, to override the default setting
isEmpty(IDE_SOURCE_TREE): IDE_SOURCE_TREE = $$(QTC_SOURCE)
isEmpty(IDE_SOURCE_TREE): IDE_SOURCE_TREE = "D:/qt-creator-src-5.0.1"

## Either set the IDE_BUILD_TREE when running qmake,
## or set the QTC_BUILD environment variable, to override the default setting
isEmpty(IDE_BUILD_TREE): IDE_BUILD_TREE = $$(QTC_BUILD)
isEmpty(IDE_BUILD_TREE): IDE_BUILD_TREE = "D:/qt-creator-build-5.0.1"

## uncomment to build plugin into user config directory
## <localappdata>/plugins/<ideversion>
##    where <localappdata> is e.g.
##    "%LOCALAPPDATA%\QtProject\qtcreator" on Windows Vista and later
##    "$XDG_DATA_HOME/data/QtProject/qtcreator" or "~/.local/share/data/QtProject/qtcreator" on Linux
##    "~/Library/Application Support/QtProject/Qt Creator" on OS X
# USE_USER_DESTDIR = yes

###### If the plugin can be depended upon by other plugins, this code needs to be outsourced to
###### <dirname>_dependencies.pri, where <dirname> is the name of the directory containing the
###### plugin's sources.

QTC_PLUGIN_NAME = AStyle
QTC_LIB_DEPENDS += \
    # nothing here at this time

QTC_PLUGIN_DEPENDS += \
    coreplugin \
    texteditor \
    diffeditor \
    qmakeprojectmanager \
    projectexplorer

QTC_PLUGIN_RECOMMENDS += \
    # optional plugin dependencies. nothing here at this time

###### End _dependencies.pri contents ######

include($$IDE_SOURCE_TREE/src/qtcreatorplugin.pri)

RESOURCES += \
    astyle.qrc

FORMS += \
    cdlgformatproject.ui \
    formformat.ui \
    formindent.ui \
    formpad.ui \
    formstyle.ui \
    formtab.ui

LIBS += -L../lib -lartisticstyle
